class Api {

	constructor(conf) {
		this.ip = conf.ip ? conf.ip : "";
		this.port = conf.port ? conf.port : "";
		this.protocol = conf.protocol ? conf.protocol : "";

		this.baseUrl = this.protocol + "://" + this.ip + ":" + this.port + "/alumni-all";
		this.imgBaseUrl = this.protocol + "://" + this.ip + ":" + this.port + "/alumni-all";
		this.noHttpUrl = this.ip + ":" + this.port + "/alumni-all";
		this.apis = {
			
			// 登录
			login: this.baseUrl + '/app/loginWapp',
			// 首页
			index: this.baseUrl + '/app/index',
			
			/** 内容 **/
			// 类别
			cmsCList: this.baseUrl + '/app/cms/cList',
			// 轮播
			cmsCarousels: this.baseUrl + '/app/cms/carousels',
			// 文章列表
			cmsList: this.baseUrl + '/app/cms/list',
			// 文章详情
			cmsDetail: this.baseUrl + '/app/cms/detail',
			
			/** 组织 **/
			// 列表
			orgList: this.baseUrl + '/app/org/list',
			// 首页
			orgIndex: this.baseUrl + '/app/org/index',
			// 详情
			orgDetail: this.baseUrl + '/app/org/detail',
			// 保存留言
			orgMsgSave: this.baseUrl + '/app/org/saveMsg',
			
			/** 活动 **/
			// 列表
			activityList: this.baseUrl + '/app/activity/list',
			// 详情
			activityDetail: this.baseUrl + '/app/activity/detail',
			
			/** 投票 **/
			// 列表
			voteList: this.baseUrl + '/app/vote/list',
			// 详情
			voteDetail: this.baseUrl + '/app/vote/detail',
		}
	}
}

export default Api
